<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v2007 (http://www.altova.com) -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>

<xsl:template match="/">
  <html>
  <body>
  <h2>My Albums Collection</h2>
    <table border="1">
      <tr bgcolor="#CCCCCC">
        <th align="left">Title</th>
        <th align="left">Artist</th>
        <th align="left">Year</th>
        <th align="left">Producer</th>
        <th align="left">Price</th>
        <th align="left">Songs
        </th>
      </tr>
      <xsl:for-each select="albums/album">
      <tr>
        <td>
          <xsl:value-of select="name"/>
        </td>
        <td>
          <xsl:value-of select="artist"/>
        </td>
        <td>
          <xsl:value-of select="year"/>
        </td>
        <td>
          <xsl:value-of select="producer"/>
        </td>
        <td>
          <xsl:value-of select="price"/>
        </td>
        <td>
          <table>
            <xsl:for-each select ="songs/song">
                  <tr>
                    <td>
                      <xsl:value-of select="title"/>
                    </td>
                    <td>
                      <xsl:value-of select="duration"/>
                    </td>
                  </tr>
            </xsl:for-each>
          </table>
        </td>
      </tr>
      </xsl:for-each>
    </table>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>
